<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>示例5</title>
    <script src="jquery.js"></script>
    <script>
        $(function (){
            //隐式迭代
            $("li").click(function (){
                alert($(this).text())
            })
        })

        function show(){
            const item = $(".animationList>li:eq(0)").clone(true)
            $(".animationList").append(item)
        }
    </script>
</head>
<body>
    <h2>热门动画排行</h2>
    <button onclick="show()">克隆</button>
    <ul class="animationList">
        <li>名侦探柯南</li>
        <li>阿拉蕾</li>
        <li>海贼王</li>
    </ul>
</body>
</html>